-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(iota-genesis-builder): merge unlocked vesting outputs into one output per address #1238
Conversation
…utput per address
I tested the PR by running a single validator locally (iota and smr state), but there was no significant reduction of RAM. genesis.blob size is 6.38 GB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to the rust side! 🎊 LGTM!
Just run cargo clippy and implement the suggestions!
(Additionally, NIT: to make the main cleaner you could create a dedicated handle_iota_migration function that replaces the code under the CoinType::Iota
branch)
Use a custom iterator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried locally, managed to run a single validator!
…utput per address (#1238) * feat(iota-genesis-builder): merge unlocked vesting outputs into one output per address * Fix filter condition * Apply review suggestions * Use a custom iterator * Applied the clippy suggestions * Fixed rustfmt error --------- Co-authored-by: Chloe Martin <chloedaughterofmars@gmail.com>
…utput per address (#1238) * feat(iota-genesis-builder): merge unlocked vesting outputs into one output per address * Fix filter condition * Apply review suggestions * Use a custom iterator * Applied the clippy suggestions * Fixed rustfmt error --------- Co-authored-by: Chloe Martin <chloedaughterofmars@gmail.com>
…utput per address (#1238) * feat(iota-genesis-builder): merge unlocked vesting outputs into one output per address * Fix filter condition * Apply review suggestions * Use a custom iterator * Applied the clippy suggestions * Fixed rustfmt error --------- Co-authored-by: Chloe Martin <chloedaughterofmars@gmail.com>
Description of change
This PR collects the already unlocked vesting outputs into one per unique address in the iota-genesis-build.
Coin<IOTA>
objects by roughly ~2.2 millionLinks to any relevant issues
fixes issue #1224
Type of change
How the change has been tested
Change checklist